<link rel="import" href="../../bower_components/polymer/polymer.html">

<dom-module id="cr-html-echo">
  <script>
    Polymer({
      is: 'cr-html-echo',
      properties: {
        html: {
          type: String,
          observer: 'htmlChanged'
        }
      },
      htmlChanged: function() {
        // WARNING: potential XSS vulnerability if `html` comes from an untrusted source
        this.innerHTML = this.html || '&nbsp;';
      }
    });
  </script>
</dom-module>
